package com.xinghai.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xinghai.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import com.xinghai.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 用户管理对象 jkq_user
 *
 * @author xinghai
 * @date 2025-08-02
 */
@TableName("jkq_user")
@EqualsAndHashCode(callSuper = true)
@Data
public class JkqUser extends BaseEntity
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickname;

    /** 头像 */
    @Excel(name = "头像")
    private String imageUrl;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 年龄 */
    @Excel(name = "年龄")
    private String age;

    /** openId */
    @Excel(name = "openId")
    private String openId;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 状态 */
    @Excel(name = "状态", dictType = "sys_common_status")
    private String status;

    /** 删除标志 */
    @TableLogic
    private String delFlag;

    /** 活跃天数 */
    @Excel(name = "活跃天数")
    private Integer loginNum;

    /** 活跃天数 */
    @Excel(name = "身份",readConverterExp = "0=普通用户,1=健康管理师")
    private String type;

    /** 活跃天数 */
    @Excel(name = "健康管理师昵称")
    @TableField(exist = false)
    private String healthUserName;

    /** 活跃天数 */
    @Excel(name = "健康管理师id")
    private Long healthUserId;

    /** 活跃天数 */
    @Excel(name = "邀请人id")
    private Long yqUserId;

    /** 注册时间 */
    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 最后登录时间 */
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastLoginTime;


}
